home *** CD-ROM | disk | FTP | other *** search
- Path: mail2news.demon.co.uk!genesis.demon.co.uk
- From: Lawrence Kirby <fred@genesis.demon.co.uk>
- Newsgroups: comp.lang.c
- Subject: Re: How do the functions in <time.h> work?
- Date: Fri, 19 Apr 96 21:53:44 GMT
- Organization: none
- Message-ID: <829950824snz@genesis.demon.co.uk>
- References: <317653DA.5066@ix.netcom.com>
- Reply-To: fred@genesis.demon.co.uk
- X-NNTP-Posting-Host: genesis.demon.co.uk
- X-Newsreader: Demon Internet Simple News v1.27
- X-Mail2News-Path: genesis.demon.co.uk
-
- In article <317653DA.5066@ix.netcom.com>
- jharper@ix.netcom.com "Jane Harper" writes:
-
- >This is sort of a homework question, so flame away if you must ...
- >
- >...but I'm attempting to write a bit of code to access the system time
- >and when I call ctime() it returns January, 2014 (!!!!) How does ctime
- >work (or any of the fx in <time.h> for that matter, since they're all
- >connected)? What are some possible reasons for this bogus return?
-
- We can't tell what you did unless you post some code. ctime() takes an
- argument which is a pointer to the time_t value you want to convert.
- Presumably you didn't pass it such a pointer.
-
- --
- -----------------------------------------
- Lawrence Kirby | fred@genesis.demon.co.uk
- Wilts, England | 70734.126@compuserve.com
- -----------------------------------------
-